/**
 * Copyright 2015 Software innovation and R & D center. All rights reserved.
 * File Name: SysUser.java
 * Encoding UTF-8
 * Version: 0.0.1
 * History:	2015年1月19日
 */
package com.sirdc.modules.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.sirdc.modules.core.entity.StringEntity;

/**
 * 用户表
 * @author: weihuang.peng
 * @version Revision: 0.0.1
 * @Date: 2015年1月19日
 */
@Entity
@Table(name = "t_sys_user")
@DynamicUpdate//动态更新
@DynamicInsert//动态插入
public class SysUser extends StringEntity {

	private static final long serialVersionUID = 2011718216921828248L;

	private String userId;//员工编号
	
	private String name;//中文名称

	private String birthday;//出生日期
	
	private String gender;//性别
	
	private String nativeAddr;//籍贯
	
	private String demo;//备注

	private String image;//头像
	
	private String state;//帐号状态
	
	private String position;//职位
	
	private boolean superAdmin;
	
/** 项目 级别的属性*/

	private String nation;//民族
	
	private String politicalOutlook;//政治面貌	

	private String idCard;//身份证号

	private String floorId;//楼栋id

	private String mobile;//手机
	

	private String address;

	
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the superAdmin
	 */
	@Column(name="super_admin", updatable = false)
	public boolean isSuperAdmin() {
		return superAdmin;
	}


	/**
	 * @param superAdmin the superAdmin to set
	 */
	public void setSuperAdmin(boolean superAdmin) {
		this.superAdmin = superAdmin;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * 获得头像
	 * @return the image
	 */
	public String getImage() {
		return image;
	}

	/**
	 * 设置头像
	 * @param image the image to set
	 */
	public void setImage(String image) {
		this.image = image;
	}

	/**
	 * 获取备注
	 * @return the demo
	 */
	@Column(length = 100)
	public String getDemo() {
		return demo;
	}

	/**
	 * 设置备注
	 * @param demo the demo to set
	 */
	public void setDemo(String demo) {
		this.demo = demo;
	}

	/**
	 * 获取籍贯
	 * @return the nativeAddr
	 */
	public String getNativeAddr() {
		return nativeAddr;
	}

	/**
	 * 设置籍贯
	 * @param nativeAddr the nativeAddr to set
	 */
	public void setNativeAddr(String nativeAddr) {
		this.nativeAddr = nativeAddr;
	}

	/**
	 * 获取性别
	 * @return the gender
	 */
	@Column(length = 10)
	public String getGender() {
		return gender;
	}

	/**
	 * 设置性别
	 * @param gender the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the birthday
	 */
	@Column(length = 10)
	public String getBirthday() {
		return birthday;
	}

	/**
	 * @param birthday the birthday to set
	 */
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}


	/**
	 * 获取中文名称
	 * @return the name
	 */
	@Column(length = 30)
	public String getName() {
		return name;
	}

	/**
	 * 设置中文名称
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 获取员工编号
	 * @return the userId
	 */
	@Column(length = 20)
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置员工编号
	 * @param userId the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}


	/**
	 * 
	 * @author: huiyang.yu
	 * @return the nation
	 */
	public String getNation() {
		return nation;
	}

	/**
	 * 
	 * @author: huiyang.yu
	 * @param nation the nation to set
	 */
	public void setNation(String nation) {
		this.nation = nation;
	}

	/**
	 * 
	 * @author: huiyang.yu
	 * @return the politicalOutlook
	 */
	public String getPoliticalOutlook() {
		return politicalOutlook;
	}

	/**
	 * 
	 * @author: huiyang.yu
	 * @param politicalOutlook the politicalOutlook to set
	 */
	public void setPoliticalOutlook(String politicalOutlook) {
		this.politicalOutlook = politicalOutlook;
	}

	/**
	 * 
	 * @author: huiyang.yu
	 * @return the idCard
	 */
	public String getIdCard() {
		return idCard;
	}

	/**
	 * 
	 * @author: huiyang.yu
	 * @param idCard the idCard to set
	 */
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}


	public String getFloorId() {
		return floorId;
	}

	public void setFloorId(String floorId) {
		this.floorId = floorId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
}
